/*
 * Copyright (c) 2019, SIMPO Technology. All Rights Reserved. SIMPO Technology. CONFIDENTIAL
 */
package com.blog.blogpro.common.enumeration;

/**
 * @author LuoCheng
 * @version 1.0
 * @since 2019年01月23日
 */
public enum ErrorCode {

    BLOG_ERR_USER_LOGIN(10001,"请重新登录"),
    BLOG_ERR_NO_USER(10002,"用户名或密码错误");

    private int errorCode;

    private String errorMsg;

    ErrorCode(int errorCode, String errorMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }
}
